import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/index/home"
  },
  {
    path: "/detail",
    name: "Detail",
    component: () => import("../views/Detail.vue")
  },
  {
    path: "/index",
    name: "Index",
    component: () => import("../views/index/Index.vue"),
    children: [
      {
        path: "/index/home",
        name: "Home",
        component: () => import("../views/index/Home.vue")
      },
      {
        path: "/index/classify",
        name: "Classify",
        component: () => import("../views/index/Classify.vue")
      },
      {
        path: "/index/message",
        name: "Message",
        component: () => import("../views/index/Message.vue")
      },
      {
        path: "/index/my",
        name: "My",
        component: () => import("../views/index/My.vue")
      }
    ]
  },
  {
    path:'/classify',
    name:'ClassIfy',
    component:()=>import("../views/index/xq/claxq.vue")
    },
    {
      path: "/personage",
      name: "Personage",
      component: () => import("../views/my_type/Personage.vue")
    },
    {
     path: "/comparison",
     name: "Comparison",
     component: () => import("../views/my_type/Comparison.vue")
   },
   {
    path: "/contact",
    name: "Contact",
    component: () => import("../views/my_type/Contact.vue")
  },
  {
   path: "/opinion",
   name: "Opinion",
   component: () => import("../views/my_type/Opinion.vue")
  },
  {
   path: "/share",
   name: "Share",
   component: () => import("../views/my_type/Share.vue")
  },
  {
    path: "/search",
    name: "Search",
    component: () => import("../views/Search.vue")
  },
  {
    path: "/searchcontent",
    name: "Searchcontent",
    component: () => import("../views/SearchContent.vue")
  },
  {
    path: "/ipone",
    name: "Ipone",
    component: () => import("../views/geren/Ipone.vue")
   },
   {
    path: "/sheng",
    name: "Sheng",
    component: () => import("../views/geren/Sheng.vue")
   },
   {
    path: "/ni",
    name: "Ni",
    component: () => import("../views/geren/Ni.vue")
   }
];

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
});

export default router;
